#include <Windows.h>
#include <tchar.h>

// helper functions
bool Error(WCHAR* msg, WCHAR* caption = 0);

// util methods
// Release COM objects
template<class T>
void __inline Release(T *object)
{
	if (object != NULL)
	{
		object->Release();
		object = NULL;
	}
}
